import { SOFTWARE,DELSOFTWARE,UPSOFTWARE,ADDSOFTWARE,FINDSOFTWARE } from "./api";
import { METHOD, request } from "@/utils/request";

//分页查询设备软件
export function list(params) {
  return request(SOFTWARE, METHOD.GET, params);
}
//分页查询设备软件
export function find(params) {
  return request(FINDSOFTWARE, METHOD.GET, params);
}
//升级软件包
export function upsoftware(params) {
  return request(UPSOFTWARE, METHOD.POST, params);
}
//新增软件包
export function add(params) {
  return request(ADDSOFTWARE, METHOD.POST,params);
}
//删除软件包
export function del(params) {
  return request(DELSOFTWARE, METHOD.POST,params);
}